import http from '../utils/http'

export const reqGetInventory=(product_id,product_type,record_date)=>{
  return http.get(`/inventory/getInventory`,{'product_id':product_id,'product_type':product_type,'record_date':record_date})
}


export const confirmDeduction=(productId,productType,recordDate,quantity)=>{
  return http.get(`/inventory/confirmDeduction`,{'productId':productId,'productType':productType,'recordDate':recordDate,'quantity':quantity})
}

export const reqSelidandtype=(product_detail_id)=>{
  return http.get(`/productdetail/selidandtype`,{'product_detail_id':product_detail_id})
}

export const releaseLockedInventory=(productId,productType,recordDate,quantity)=>{
  return http.get(`/inventory/releaseLockedInventory`,{'productId':productId,'productType':productType,'recordDate':recordDate,'quantity':quantity})
}